import {createStore,combineReducers, applyMiddleware} from 'redux'

import logger from 'redux-logger'
import thunk from 'redux-thunk'
import {composeWithDevTools} from 'redux-devtools-extension'

import register from './modules/register'
import login from './modules/login'

let rootReducer = combineReducers({
    register,
    login
})

let store = createStore(rootReducer,composeWithDevTools(applyMiddleware(thunk,logger)))

export default store

